package pers.youqu.common.dto;

import lombok.Data;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/12/5 15:09
 * @Description TODO
 */
@Data
public class QueryDTO {
    private Integer page = 1;
    private Integer rows = 5;
    private String key;

    public QueryDTO(Integer page, Integer rows, String key) {
        this.page = page;
        this.rows = rows;
        this.key = key;
    }

    public QueryDTO() {
    }

    @Override
    public String toString() {
        return "QueryDTO{" +
                "page=" + page +
                ", rows=" + rows +
                ", key='" + key + '\'' +
                '}';
    }
}
